<?php

namespace IDock\Insurance\YAIC\Request;

use IDock\Insurance\YAIC\Response\PolicyPaymentResponse;
use IDock\Visitor\PolicyPaymentVisitor;

class PolicyPaymentRequest extends AllYAICRequest
{
    protected $route = '';

    protected $response = PolicyPaymentResponse::class;

    protected $urlTip = '获取电子签名';

    /*** @var  PolicyPaymentVisitor $visitor */
    protected $visitor;

    public $transCode = 'B10';


    public function generate(): array
    {

        return [
            'proposalNoCI' => $this->visitor->ciInquiryNo,
            'proposalNoBI' => $this->visitor->biInquiryNo,
            'isSkipPayment' => '1',
            'payAppNo' => $this->visitor->argc['payApp'] ?? ''
        ];
    }
}
